﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSDemo.Common
{
    [Serializable]
    public class Product
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public double Price { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 是否出否
        /// </summary>
        public bool OnSale { get; set; }

        public override string ToString()
        {
            return string.Format("Name = {0}, Price = {1}", Name, Price);
        }
    }
}
